import java.util.ArrayList;


public class HoffmanMain {

	public static void main(String[] args)
	{
		HuffmanEncoder huff = new HuffmanEncoder();
		System.out.println(huff.encode("a man a plan panama"));
	}
}
